import React from 'react'
import { NavBar } from 'antd-mobile'
import { useNavigate } from 'react-router-dom'
import style from './index.module.scss'

const Index: React.FC = () => {
  const navigate = useNavigate()

  const back = () => {
    navigate(-1)
  }

  return (
    <div>
      <NavBar style={{ background: 'blue', color: '#fff' }} onBack={back}>我的消息</NavBar>

      <div className={style.message}>
        "暂无消息"
      </div>
      
    </div>
  )
}

export default Index
